package com.leyou.item.entity;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @version V1.0
 * @author: Ljxpa
 * @date: 2020/03/07 20:06
 * @description:
 */
@Data
@Table(name = "tb_spu")
public class Spu {
	@Id
	@KeySql(useGeneratedKeys = true)
	private Long id;
	private Long brandId;
	private Long cid1;// 1级类目
	private Long cid2;// 2级类目
	private Long cid3;// 3级类目
	private String name;// 商品名称
	private String subTitle;// 子标题
	private Boolean saleable;// 是否上架
	private Date createTime;// 创建时间
	private Date updateTime;// 最后修改时间
}
